﻿<navigation:Page x:Class="Crm.Login" 
           xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
           xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
           xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
           xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
           mc:Ignorable="d"
           xmlns:navigation="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Navigation"
           d:DesignWidth="1024" d:DesignHeight="768"
           Title="Login Page">

    <UserControl.Resources>
        <Style x:Key="ButtonStyle1" TargetType="Button">
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="Button">
                        <Grid>
                            <VisualStateManager.VisualStateGroups>
                                <VisualStateGroup x:Name="CommonStates">
                                    <VisualState x:Name="Normal"/>
                                    <VisualState x:Name="MouseOver">
                                        <Storyboard>
                                            <DoubleAnimation Duration="0" To="1.122" Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.ScaleX)" Storyboard.TargetName="image" d:IsOptimized="True"/>
                                            <DoubleAnimation Duration="0" To="1.175" Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.ScaleY)" Storyboard.TargetName="image" d:IsOptimized="True"/>
                                        </Storyboard>
                                    </VisualState>
                                    <VisualState x:Name="Pressed"/>
                                    <VisualState x:Name="Disabled"/>
                                </VisualStateGroup>
                            </VisualStateManager.VisualStateGroups>
                            <Image x:Name="image" Source="LoginIcon.png" Stretch="Fill" RenderTransformOrigin="0.5,0.5">
                                <Image.RenderTransform>
                                    <CompositeTransform/>
                                </Image.RenderTransform>
                            </Image>
                            <ContentPresenter HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
                        </Grid>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>
    </UserControl.Resources>

    <Grid x:Name="LayoutRoot">
        <Grid.RowDefinitions>
            <RowDefinition Height="0.384*"/>
            <RowDefinition Height="0.117*"/>
            <RowDefinition Height="245"/>
            <RowDefinition Height="0.499*"/>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="0.5*"/>
            <ColumnDefinition Width="335"/>
            <ColumnDefinition Width="0.5*"/>
        </Grid.ColumnDefinitions>
        <Grid.Background>
            <ImageBrush Stretch="Fill" ImageSource="bg.jpg"/>
        </Grid.Background>
        <Grid Grid.Column="1" Margin="0" Grid.Row="2">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="0.355*"/>
                <ColumnDefinition Width="0.645*"/>
            </Grid.ColumnDefinitions>
            <Grid.RowDefinitions>
                <RowDefinition Height="0.3*"/>
                <RowDefinition Height="30"/>
                <RowDefinition Height="30"/>
                <RowDefinition Height="0.7*"/>
            </Grid.RowDefinitions>
            <Grid.Background>
                <ImageBrush Stretch="Fill" ImageSource="loginbg.png"/>
            </Grid.Background>
            <TextBlock Margin="35,8,8,8" Grid.Row="1" TextWrapping="Wrap"  Text="Kullanıcı Adı" HorizontalAlignment="Right" VerticalAlignment="Center"/>
            <TextBox Grid.Column="1" Margin="8,4,56,4" Grid.Row="1" x:Name="txtKullanici" TextWrapping="Wrap" VerticalAlignment="Center" HorizontalAlignment="Left" Width="150"/>
            <TextBlock Margin="40,8,8,8" Grid.Row="2" TextWrapping="Wrap"  Text="Şifre" HorizontalAlignment="Right" VerticalAlignment="Center"/>
            <PasswordBox Grid.Column="1" Margin="8,4,56,4" Grid.Row="2" x:Name="txtSifre" VerticalAlignment="Center" HorizontalAlignment="Left" Width="150"/>
            <Button x:Name="btnGiris" Content="" HorizontalAlignment="Right" Height="76" Grid.Column="1" Margin="0,0,58,31" Grid.Row="3" Style="{StaticResource ButtonStyle1}" VerticalAlignment="Bottom" Width="86" Cursor="Hand" TabIndex="3" Click="btnGiris_Click"/>
        </Grid>
        <Grid Grid.Column="1" Margin="0,0,0,8" Grid.Row="1">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="0.469*"/>
                <ColumnDefinition Width="0.531*"/>
            </Grid.ColumnDefinitions>
            <TextBlock Margin="0" TextWrapping="Wrap" Text="SİLVER" Foreground="#FF8B8B8B" FontSize="26.667" VerticalAlignment="Center" HorizontalAlignment="Right"/>
            <TextBlock Grid.Column="1" Margin="5,0,0,0" TextWrapping="Wrap" Text="CRM" FontSize="26.667" VerticalAlignment="Center" Foreground="#FFE50000" HorizontalAlignment="Left"/>
        </Grid>

    </Grid>
</navigation:Page>
